package com.lq.ecoldchain.ui.mine.user.phone

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.lq.ecoldchain.R
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.view.BaseActivity
import com.lq.ecoldchain.databinding.ActivityUpdatePhoneBinding
import com.lq.ecoldchain.entity.UserInfoBean
import org.kodein.di.Kodein
import org.kodein.di.generic.instance

/*
*2019/1/3 0003  17:06
*function by lq
*/
@Route(path = BaseNavigator.updatePhone)
class UpdatePhoneActivity:BaseActivity<ActivityUpdatePhoneBinding>(){
    @Autowired
    @JvmField
    var phone: String?=null
    override val layoutId = R.layout.activity_update_phone
    override val viewDelegate: UpdatePhoneDelegate by instance()
    override val kodein = Kodein.lazy {
        extend(parentKodein)
        import(updatePhoneKodeinModule)
    }
    override fun initView() {
        ARouter.getInstance().inject(this)
       binding.delegate = viewDelegate
        titleText("修改手机号")
        viewDelegate.viewModel.phone.value= phone
    }

}